package com.example.demo.serviceipml;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.dao.menuDao;
import com.example.demo.entify.Menu;
import com.example.demo.entify.RoleMenu;
import com.example.demo.service.MenuService;

@Service
public class MenuServiceImp implements MenuService {
	
	@Autowired
	private menuDao dao;

	@Override
	public List<Menu> findMenu(Menu menu) {
		// TODO Auto-generated method stub
		return dao.findMenu(menu);
	}

	

	@Override
	public int addroleMenu(RoleMenu RoleMenu) {
		// TODO Auto-generated method stub
		return dao.addroleMenu(RoleMenu);
	}

	@Override
	public int deleteRoleMenu(RoleMenu RoleMenu) {
		// TODO Auto-generated method stub
		return dao.deleteRoleMenu(RoleMenu);
	}

	@Override
	public boolean isExistence(RoleMenu RoleMenu) {
		// TODO Auto-generated method stub
		return dao.isExistence(RoleMenu) != null ? true :false;
	}

	@Override
	public int addMenu(Menu menu) {
		// TODO Auto-generated method stub
		return dao.addMenu(menu);
	}



	@Override
	public List<Menu> findAllmenus(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return dao.findAllmenus(params);
	}



}
